import { IUserState } from '@/typings'

export default {
  roles(state: IUserState) {
    return (state.userInfo as any).authorities.map((item: any) => item.authority)
  }
}
